<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<h:head>
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-store" />
	<meta http-equiv="Expires" content="0" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />




</h:head>

<h:body>
	<ui:composition
		template="/WEB-INF/mdms/layout#{userMBean.userLayoutId}/template.xhtml">
		<ui:define name="content">
			<rich:panel id="panelTest" styleClass="mdmsPanel">

				<f:facet name="header">
					<table>
						<tr>
							<td style="width: 90%;"><h:outputText
									value="#{vresources['dictionaries.mainPanel']}"
									styleClass="mdmsPanelText" /></td>


							<td style="width: 100%; float: right;">
								<div id="mdmsPanelMenu">
									<rich:dropDownMenu mode="ajax" label="x" showDelay="0"
										hideDelay="0" horizontalOffset="2">
										<rich:menuItem label="Dodaj"
											onclick="#{rich:component('popup')}.show()">
										</rich:menuItem>
									</rich:dropDownMenu>
								</div>
							</td>


							<td style="width: 50%;"><h:inputText value="search"
									style="height:30px;" /></td>
						</tr>

					</table>
				</f:facet>

				<rich:popupPanel id="popup" modal="false" autosized="true"
					resizeable="false">
					<f:facet name="header">
						<h:outputText value="Dodawanie nowego słownika" />
					</f:facet>
					<f:facet name="controls">
						<h:outputLink value="#"
							onclick="#{rich:component('popup')}.hide(); return false;">
                X
            </h:outputLink>
					</f:facet>
					<table>
						<tr>
							<td><h:outputText value="Nazwa słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_name}" /></td>
						</tr>

						<tr>
							<td><h:outputText value="Typ słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_type}" /></td>
						</tr>
						<tr>
							<td><h:outputText value="Kod słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_code}" /></td>
						</tr>
						<tr>
							<td><h:commandButton value="Zapisz" action="{dictMBean.addNewDictionary}" /></td>
							<td><h:commandButton value="Anuluj"
									onclick="#{rich:component('popup')}.hide(); return false;" /></td>
						</tr>

					</table>
				</rich:popupPanel>
					<table>
						<tr>
							<td><h:outputText value="Nazwa słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_name}" /></td>
						</tr>

						<tr>
							<td><h:outputText value="Typ słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_type}" /></td>
						</tr>
						<tr>
							<td><h:outputText value="Kod słownika" /></td>
							<td><h:inputText value="#{dictMBean.aDct_code}" /></td>
						</tr>
						<tr>
							<td><h:commandButton value="Zapisz" action="#{dictMBean.addNewDictionary}" /></td>
							<td><h:commandButton value="Anuluj"
									onclick="#{rich:component('popup')}.hide(); return false;" /></td>
						</tr>

					</table>
			</rich:panel>
		</ui:define>
	</ui:composition>
</h:body>
</html>
